package com.ljy.my_study.spring.tiny.study8.beans;

public class BeanDefinition {
	
	private String className;
	
	private Class beanClass;
	
	private Object bean;
	
	private PropertyValues propertyValues=new PropertyValues();
	
	public Class getBeanClass() {
		return beanClass;
	}

	public void setBeanClass(Class beanClass) {
		this.beanClass = beanClass;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
		try {
			this.beanClass=Class.forName(className);
		}catch(Exception e) {
			e.printStackTrace();
		}
	}

	public Object getBean() {
		return bean;
	}

	public void setBean(Object bean) {
		this.bean = bean;
	}

	public PropertyValues getPropertyValues() {
		return propertyValues;
	}

	public void setPropertyValues(PropertyValues propertyValues) {
		this.propertyValues = propertyValues;
	}

	@Override
	public String toString() {
		return "BeanDefinition [className=" + className + ", beanClass=" + beanClass + ", bean=" + bean
				+ ", propertyValues=" + propertyValues + "]";
	}


}
